﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace LWH.ByteProtocol
{
    /// <summary>
    /// 固定长度的属性
    /// </summary>
    public class FixLengthProperty : SkeletalProperty
    {
        private int mLength;

        public FixLengthProperty(OwnerProperty ownerProperty, int length) : base(ownerProperty)
        {
            mLength = length;
        }

        override public int getLength()
        {
            return mLength;
        }
    }
}
